package com.lfnyxy.dao;

import com.lfnyxy.entity.NewsEntity;
import com.lfnyxy.query.NewsQuery;
import com.lfnyxy.vo.NewsVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by ted on 17/5/8.
 */
public interface NewsDao {
    int CreateItem(NewsEntity entity);

    int UpdateItem(NewsEntity entity);

    List <NewsVo> QueryPageList(NewsQuery query);

    List <NewsEntity> QueryAll();

    int QueryPageListCount(NewsQuery query);

    int CheckIsExist(NewsEntity entity);

    NewsEntity QueryItem(int Id);

    int DeleteItem(int Id);
}